package com.gba.mark.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gba.mark.article.entity.Article;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ArticleMapper extends BaseMapper<Article> {
    @Select("SELECT `id` FROM `article` " +
            "WHERE  `group_id` =  #{group_id}")
    List<Integer> getArticleIdList(@Param("group_id") int groupId);
}
